from flask import Flask,url_for
app=Flask(__name__)

@app.route("/")
def index():
    url=url_for("index")
    return url

@app.route("/detail/<int:id>")
def detail(id):
    url=url_for("detail",id=id)
    return url

if __name__ == '__main__':
    app.run()

